From 2d5c2b773d963abe359ca6151683b7e72684c9c2 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Tue, 26 Sep 2006 08:36:39 +0100 Subject: [PATCH] [VMXASSIST] Small fix to virt-to-phys translation. CR4.PSE is ignored in PAE mode, so remove test of it. Signed-off-by: Keir Fraser --- tools/firmware/vmxassist/vm86.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/firmware/vmxassist/vm86.c b/tools/firmware/vmxassist/vm86.c index ad12307ae1..fb22938e72 100644 --- a/tools/firmware/vmxassist/vm86.c +++ b/tools/firmware/vmxassist/vm86.c @@ -95,7 +95,7 @@ guest_linear_to_real(uint32_t base) if (!(l1_mfn & PT_ENTRY_PRESENT)) panic("l2 entry not present\n"); - if ((oldctx.cr4 & CR4_PSE) && (l1_mfn & PDE_PS)) { + if (l1_mfn & PDE_PS) { /* CR4.PSE is ignored in PAE mode */ l0_mfn = l1_mfn & 0x3ffe00000ULL; return l0_mfn + (base & 0x1fffff); } -- 2.30.2